STEP 4: Let's make our random y coordinate.

  • In , drag in Random Integer INSIDE your loop.
  • Change the variable name from my_var to y.
  • Change the number 1 inside the parentheses to -250 and the number 10 to 250.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)